package com.sdweizan.sdk.bytedance.bean.settle;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseRequest;
import com.sdweizan.sdk.bytedance.constants.BdConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BdQueryPlatformRequest implements BdBaseRequest {
  @JSONField(name = "app_id")
  private String appId;
  // 开发者侧支付订单号
  @JSONField(name = "out_order_no")
  private String outOrderNo;
  // 查询类型枚举：
  // 1：自动分账
  @JSONField(name = "query_type")
  private Integer queryType;

  @JSONField(name = "sign")
  private String sign;

  @Override
  public String requestUri() {
    return BdConstants.API_HOST + "/api/apps/ecpay/v1/query_platform_order";
  }
}
